package edu.caece.langprocessor.syntax.parse;

import java.util.List;

import edu.caece.langprocessor.syntax.Terminal;
import edu.caece.langprocessor.syntax.tree.TreeNode;

public class ActionResult {
	
	private TreeNode treeNode;
	private Terminal terminalItem;
	private Integer errorCount;
	private final List<Terminal> errorsList;
	
	public ActionResult(Terminal terminalItem, TreeNode treeNode, Integer errorCount, List<Terminal> errorsList){
		this.terminalItem = terminalItem;
		this.treeNode = treeNode;
		this.errorCount = errorCount;
		this.errorsList = errorsList;
	}
	
	public Terminal getTerminalItem() {
		return terminalItem;
	}

	public TreeNode getTreeNode() {
		return treeNode;
	}

	public Integer getErrorCount(){
		return errorCount;
	}
	
	public List<Terminal> getErrorList(){
		return errorsList;
		
	}
	
}
